/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const router = {
  path: '/purchase',
  component: Layout,
  name: 'purchase',
  alwaysShow: true,
  meta: {
    title: '采购管理',
    icon: 'shopping'
  },
  children: [
    {
      path: '/purchase/order',
      component: () => import('@/views/purchase/order/orderlist'),
      name: 'orderlist',
      meta: {
        title: '采购订货'
      },


    }, {
      path: '/purchase/order/detail',
      component: () => import('@/views/purchase/order/detail'),
      name: 'orderdetail',
      meta: {
        title: '添加采购订货'
      },
      hidden: true
    }, {
      path: '/purchase/inspect',
      component: () => import('@/views/purchase/inspect/inspectlist'),
      name: 'inspectlist',
      meta: {
        title: '验收入库'
      },

    }, {
      path: '/purchase/inspect/detail',
      component: () => import('@/views/purchase/inspect/detail'),
      name: 'inspectdetail',
      meta: {
        title: '验收入库明细'
      },
      hidden: true
    },
    {
      path: '/purchase/return',
      component: () => import('@/views/purchase/return/returnlist'),
      name: 'returnlist',
      meta: {
        title: '采购退货'
      },

    },
    {
      path: '/purchase/return/detail',
      component: () => import('@/views/purchase/return/detail'),
      name: 'returndetail',
      meta: {
        title: '采购退货明细'
      },
      hidden: true
    }, {
      path: '/purchase/settlement',
      component: () => import('@/views/purchase/settlement/settlementlist'),
      name: 'settlementlist',
      meta: {
        title: '采购结算'
      },

    },
    {
      path: '/purchase/settlement/detail',
      component: () => import('@/views/purchase/settlement/detail'),
      name: 'settlementdetail',
      meta: {
        title: '采购结算明细'
      },
      hidden: true
    },

  ]
}

export default router
